

package com.walk.zworld.ui.fragment.square

import android.view.View
import com.walk.zworld.square.commend.HomeCommendAdapter
import com.walk.zworld.square.commend.HomeCommendViewModel
import com.walk.zworld.square.model.HomePageRecommend
import com.base.lib.base.view.BaseMvvmListFragment

/**
 * 首页-推荐列表界面。
 */
class CommendFragment : BaseMvvmListFragment<HomePageRecommend.Item, HomeCommendViewModel, HomeCommendAdapter>()
{

    override fun onBindAdapter(): Class<HomeCommendAdapter>  = HomeCommendAdapter::class.java

    override fun initBindAdapter(): HomeCommendAdapter {
        return HomeCommendAdapter(this);
    }

    override fun onBindViewModel(): Class<HomeCommendViewModel> = HomeCommendViewModel::class.java

    override fun initView(mView: View) {
        showInitLoadView()
    }

    override fun initData() {
        onRefreshEvent()
    }

    companion object {
        fun newInstance() = CommendFragment()
    }

}
